const router = require('koa-router')()

const loginApi = require('../app/controller/admin/login')
const getAdminInfoApi = require('../app/controller/admin/admin')

//登录接口
router.post('/v1/login', loginApi.login)
//退出登录
router.post('/v1/logout', loginApi.logOut)
//获取管理用户信息
router.get('/v1/admin', getAdminInfoApi.getAdminInfo)

//文章接口
// router.get('/v1/article', userApi.postSignin)
// //管理用户接口
// router.get('/v1/admin', userApi.userList)
// //会员接口
// router.get('/v1/member', userApi.userList)

module.exports = router
